/**
 * Rook.java
 * Auti i class ine ipethini gia ta Pawns ( Stratiotakia ). Ohi gia tous kanones pou ta diakrini.
 */

package chess;

/**
 * 
 * @author Stordopoulos Dimitris <stordop@csd.uoc.gr>
 */
public class Rook extends Piece{
    
    public Rook(){ super(); }
    
    /**
     * 
     * @param clr To hroma gia to Pawn, vasi tou opiou tha apofasisti to icon. 
     * @param mov To an to Pawn tha ine movable apo to mouse.
     */
    public Rook(char clr, boolean mov){
        this();
        if( clr=='w'){ setPieceImage("Wrook.png"); }
        else{ setPieceImage("Brook.png"); } //black pawn !!!
        setMovability(mov);
        setPieceColor(clr);
    }
}